package com.taotaojs.test;

import com.taotaojs.util.CollectionUtil;
import lombok.extern.log4j.Log4j2;
import org.junit.Test;

import java.util.List;

import static junit.framework.TestCase.assertNull;

/**
 * @author: TaoTaojs
 * @Date: 2019/3/13 23:38
 * @Description: TODO
 * @关联类:
 * @参考链接：
 */
@Log4j2
public class Application {

    Application(){}

    @Test
    public void test() {
        List<Integer> list1 = CollectionUtil.getIds("1,2df大姐夫,3");
        List<String> list2 = CollectionUtil.getStrs("1,2df,,3", ",");
        log.info(list1);
        log.info(list2);
        list2.add(null);
        list2.add("null");

        assert(list2.size() == 1);
        assertNull(list2.size() > 0);

        CollectionUtil.toNotEmpty(list2);
        log.info(list2);
    }

}
